Streams relate Class
Lets the user search for streams they can relate a given stream to, and relate it
Constructor
Streams relate
-
[$options] -
$publisherId -
$streamName -
[$communityId=Users::communityId()] -
[$types=Q_Config::expect('Streams','relate','types')] -
[$typeNames] -
[options.multiple=true] -
[$relateFrom=false] -
[$types=Q_Config::expect('Streams','relate','types')]
Parameters:
-
[$options]Array optionalOverride various options for this tool
-
[onRelate]Q.Event optionalThis event handler occurs when a stream is successfully related
-
-
$publisherIdStringpublisher id of the stream to relate
-
$streamNameStringname of stream to relate
-
[$communityId=Users::communityId()]String optionalid of the user publishing the streams to relate to
-
[$types=Q_Config::expect('Streams','relate','types')]Array optionalthe types of streams the user can select
-
[$typeNames]Array optionalpairs of array($type => $typeName) to override names of the types, which would otherwise be taken from the types
-
[options.multiple=true]Boolean optionalwhether the user can select multiple types for the lookup
-
[$relateFrom=false]Boolean optionalif true, will relate FROM the user-selected stream TO the streamName instead
-
[$types=Q_Config::expect('Streams','relate','types')]String optionalthe types of streams the user can select
Item Index
Methods
- register static
Methods
register
-
$_REQUEST.fullName -
$_REQUEST.identifier -
[$_REQUEST.identifier.identifier] -
[$_REQUEST.identifier.device] -
[$_REQUEST.icon=array()]
Registers a user. Can be hooked to 'Users/register' before event so it can override standard functionality. Method ensures user registration based on full name and also handles registration of invited user
Parameters:
-
$_REQUEST.fullNameStringThe full name of the user in the format 'First Last' or 'Last, First'
-
$_REQUEST.identifierString | ArrayCan be an email address or mobile number. Or it could be an array of $type => $info
-
[$_REQUEST.identifier.identifier]String optionalan email address or phone number
-
[$_REQUEST.identifier.device]Array optionalan array with keys "deviceId", "platform", "version" to store in the Users_Device table for sending notifications
-
[$_REQUEST.icon=array()]Array optionalUser icon